1 using System;
2 using
System.Collections.Generic;
3 using
System.ComponentModel;
4 using
System.Drawing;
5 using
System.Data;
6 using
System.Linq;
7 using
System.Text;
8 using
System.Threading.Tasks;
9 using
System.Windows.Forms;
10
11 namespace
SoftQuanLyNhaHang.Controllers
12 {
13     
class ThueCtrl
14     {
15         
public static int InsertThue(int _IdThue, int _Thue, string _TrangThai, DateTime _NgayTao)
16         {
17             
try
18             {
19                 Models.ThueMod _thue =
new Models.ThueMod(_IdThue, _Thue, _TrangThai, _NgayTao);
20                 
return _thue.InsertThue();
21             }
22             
catch
23             {
24                 
return 0;
25             }
26         }
27
28         
public static int UpdateThue(int _IdThue, int _Thue, string _TrangThai, DateTime _NgayTao)
29         {
30             
try
31             {
32                 Models.ThueMod _thue =
new Models.ThueMod(_IdThue, _Thue, _TrangThai, _NgayTao);
33                 
return _thue.UpdateThue();
34             }
35             
catch
36             {
37                 
return 0;
38             }
39         }
40
41         
public static int DeleteThue(int _IdThue)
42         {
43             
try
44             {
45                 Models.ThueMod _thue =
new Models.ThueMod(_IdThue);
46                 
return _thue.DeleteThue();
47             }
48             
catch
49             {
50                 
return 0;
51             }
52
53         }
54
55         
//Lay thue
56         
//hien thi thue dropdow
57         
public static DataSet FillDataSetThue_GetShowDropdow()
58         {
59             
try
60             {
61                 Models.ThueMod thue =
new Models.ThueMod();
62                 
return thue.FillDataSetThue_GetShowDropdow();
63
64             }
65             
catch
66             {
67                 
return null;
68             }
69         }
70     }
71 }


Gõ tìm kiếm nhanh...